# Uncomment the following line for Solaris
# C_LINK = -lsocket -lnsl -lm

# Uncomment this for SCO.  (Note, this has only been reported to work with
# Revision 3.2.4 with the "SCO TCP/IP Development System" package installed.
# Please let me know if you have any other SCO success stories.
# C_LINK = -lsocket
LIB_CGI		=  /usr/local/tdev/comm/lib/cgihtml.a

LIB_TLIB	= -L/usr/local/tdev/comm/lib -ltlib
INC_MYSQL 	= -I/usr/local/mysql/include
LIB_MYSQL   = -L/usr/local/mysql/lib -lmysqlclient

INC		=  -I/usr/local/tdev/comm/include $(INC_MYSQL)
LIB		=  $(LIB_TLIB) $(LIB_CGI) $(LIB_MYSQL)


BINARYS = add view 

# Comment the following line if you are not using the gnu c compiler
C_ARGS = -Wall

# You might have to change this if your c compiler is not cc
CC = gcc

all: $(BINARYS)

add: add.c
	$(CC) -g -o  add add.c $(LIB) $(INC) -lcrypt
	strip add

view: view.c
	$(CC) -g -o  view view.c 
	strip logout
	
clean: 
	rm -f $(BINARYS)
